package ch4;

import java.util.Scanner;

public class CheckPass3 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String result;
		do {
			System.out.println("张浩同学上机测试");
			System.out.println("老师检查，结果是：");
			result = in.next();
		} while (!result.equals("合格"));
		System.out.println("恭喜张浩同学，合格了！");
//		if (!result.equals("合格")) {
//			System.out.println("张浩同学上机测试");
//			System.out.println("老师检查，结果是：");
//			result = in.next();
//			if (!result.equals("合格")) {
//				System.out.println("张浩同学上机测试");
//				System.out.println("老师检查，结果是：");
//				result = in.next();
//				if (!result.equals("合格")) {
//					// .....
//				}
//			}
//		}
	}

}
